<template>
  <view class="repair-input">
    <view class="input-left" @click="openList">
      {{ moreList }}
      <view class="category">
        <image src="../static/groups.png" />
      </view>
    </view>
    <view class="input-right" @click="jump_serach">
      <image src="../static/serach.png" />
      <view> 输入客户名称或者工单号或者序号 </view>
    </view>
  </view>
</template>

<script>
export default {
  name: "head_class",
  props: {
    moreList: {
      type: String,
      default: "",
    },
    type: {
      type: [String, Number],
      default: "",
    }
  },
  data() {
    return {};
  },
  mounted() {},
  methods: {
    /* 选择类目 */
    openList() {
      this.$emit("click");
    },
    /* 搜索医院 */
    jump_serach() {
      uni.navigateTo({
        url: "/pages/serach/serach?type=" + this.type,
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.repair-input {
  display: flex;
  align-items: center;
  margin-bottom: 32rpx;

  .input-left {
    font-size: 30rpx;
    font-family: PingFang SC-Medium, PingFang SC;
    font-weight: 600;
    color: #303030;
    margin-right: 56rpx;
    position: relative;

    .category {
      position: absolute;
      right: -42rpx;
      top: 0rpx;

      image {
        width: 32rpx;
        height: 32rpx;
      }
    }
  }

  .input-right {
    flex: 1;
    background-color: #ffffff;
    border-radius: 88rpx;
    padding: 0 20rpx;
    height: 80rpx;
    font-size: 26rpx;
    font-weight: 500;
    color: #c6c7cb;
    display: flex;
    align-items: center;
    image {
      width: 48rpx;
      height: 48rpx;
      margin-right: 20rpx;
    }
  }
}
</style>
